
'use strict';
const express=require('express');
const path=require('path');
const moment=require('moment');
const teaStuRouter=express.Router();

const mutipart = require('connect-multiparty');
const mutipartMiddeware = mutipart();

const teaStuCtrl=require(path.join(__dirname,"../controllers/teaStuController.js"));

teaStuRouter.get('/teaStu_list',teaStuCtrl.teaStuList);


teaStuRouter.get('/teaStu_add',teaStuCtrl.teaStuAdd);

teaStuRouter.post('/teaStu_add',mutipartMiddeware,teaStuCtrl.teaStuAddData);

teaStuRouter.get('/teaStu_edit/:stu_id',teaStuCtrl.teaStuEdite);

teaStuRouter.post('/teaStu_edit/:stu_id',mutipartMiddeware,teaStuCtrl.teaStuEditeData);

teaStuRouter.get('/teaStu_delete/:stu_id',teaStuCtrl.teaStuDelete);



module.exports=teaStuRouter;
